package com.kt.dion.golf.data;

import java.util.ArrayList;

import com.kt.dion.golf.util.ResourceManager;

public class ChampionResultListData extends Data
{
	private ArrayList arrPlayer = new ArrayList();
	private int total;

	public void addPlayer(Player player)
	{
		arrPlayer.add(player);
	}

	public void removePlayer(Player player)
	{
		arrPlayer.remove(player);
	}

	public Player getPlayer(int i)
	{
		if (i < arrPlayer.size())
			return (Player) arrPlayer.get(i);
		return null;
	}

	public void setPlayerList(ArrayList arrPlayers)
	{
		arrPlayer.clear();
		arrPlayer.addAll(arrPlayers);
	}

	public int getDataSize()
	{
		return arrPlayer.size();
	}

	public int getTotal()
	{
		return total;
	}

	public void setTotal(int total)
	{
		this.total = total;
	}

	public class Player extends Data
	{
		String code;
		int num;

		public String getCode()
		{
			return code;
		}

		public void setCode(String code)
		{
			this.code = code;
		}

		public int getNum()
		{
			return num;
		}

		public void setNum(int num)
		{
			this.num = num;
		}

		public String toString()
		{
			return null;
		}

		public void dispose(boolean isDisposeOfPage)
		{
		}
	}

	public void dispose(boolean isDisposeOfPage)
	{
		for (int i = 0; i < arrPlayer.size(); i++)
		{

		}
	}

	public String toString()
	{
		return null;
	}
}
